package com.zxhhyj.storm.dsl

import com.zxhhyj.storm.schema.Column

class AssignmentsBuilder internal constructor() {

    private val argsMap = mutableMapOf<String, Any>()

    operator fun <A> set(key: Column<*, A>, value: A) {
        argsMap.put(key.fieldName, value.toString())
    }

    fun build(): Map<String, *> {
        return argsMap.toMap()
    }

}